package com.ygqh.baby.mapper;

import com.wdt.api.response.support.StockOutOrderTradeDTO;
import com.ygqh.baby.po.WdtQybStockOut;
import com.ygqh.baby.po.WdtQybStockOutExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface WdtQybStockOutMapper {
	int countByExample(WdtQybStockOutExample example);

	int deleteByExample(WdtQybStockOutExample example);

	int deleteByPrimaryKey(Long id);

	int insert(WdtQybStockOut record);

	int insertSelective(WdtQybStockOut record);

	List<WdtQybStockOut> selectByExample(WdtQybStockOutExample example);

	WdtQybStockOut selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") WdtQybStockOut record, @Param("example") WdtQybStockOutExample example);

	int updateByExample(@Param("record") WdtQybStockOut record, @Param("example") WdtQybStockOutExample example);

	int updateByPrimaryKeySelective(WdtQybStockOut record);

	int updateByPrimaryKey(WdtQybStockOut record);

	int countSuper(@Param("q") String q);

	List<WdtQybStockOut> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	int insertBatch(@Param("outList") List<WdtQybStockOut> outList);

	int insertBatchByDTO(@Param("outList") List<StockOutOrderTradeDTO> outList);

	int deleteBatch(@Param("stockOutIds") List<Integer> stockOutIds);

	WdtQybStockOut selectStockOut(@Param("logisticsNo") Long logisticsNo);

}
